Skip to content

Conversation

@kien-ngo
Copy link
Contributor

@kien-ngo kien-ngo commented Oct 10, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on enhancing test cases for various ERC20 and ERC1155 functionalities by conditionally running tests based on the presence of a TW_SECRET_KEY. It also introduces new tests for lazy minting and additional supply minting capabilities.

Detailed summary

  • Updated describe blocks to conditionally run tests using describe.runIf(process.env.TW_SECRET_KEY).
  • Added tests for isLazyMintSupported in erc1155: lazyMint.
  • Added tests for isMintAdditionalSupplyToSupported in erc1155: mintAdditionalSupplyTo.
  • Added tests for minting functionality in erc1155: mintTo.
  • Added tests for isGetNFTsSupported in ERC1155 getNFTs.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@changeset-bot
Copy link

changeset-bot bot commented Oct 10, 2024

⚠️ No Changeset found

Latest commit: 50e359d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@kien-ngo kien-ngo self-assigned this Oct 10, 2024
@vercel
Copy link

vercel bot commented Oct 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2024 11:42pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2024 11:42pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2024 11:42pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 13, 2024 11:42pm

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 10, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 10, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.07 KB (0%) 842 ms (0%) 2.3 s (+25.68% 🔺) 3.2 s
thirdweb (cjs) 101.87 KB (0%) 2.1 s (0%) 5 s (+10.42% 🔺) 7 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 235 ms (-23.06% 🔽) 332 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 66 ms (+2.9% 🔺) 76 ms
thirdweb/react (minimal + tree-shaking) 17.24 KB (0%) 345 ms (0%) 367 ms (-42.94% 🔽) 712 ms

@codecov
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.77%. Comparing base (a1a6574) to head (50e359d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4985      +/-   ##
==========================================
+ Coverage   47.71%   47.77%   +0.05%     
==========================================
  Files        1059     1058       -1     
  Lines       57314    57276      -38     
  Branches     3944     3947       +3     
==========================================
+ Hits        27350    27362      +12     
+ Misses      29273    29223      -50     
  Partials      691      691              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from a1a6574
packages 43.57% <ø> (+0.06%) ⬆️

*This pull request uses carry forward flags. Click here to find out more.

see 8 files with indirect coverage changes

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 13, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing test coverage for the ERC20 and ERC1155 extensions in the `thirdweb` package. It introduces conditional test execution based on the presence of a secret key and adds new tests to verify specific functionalities.

### Detailed summary
- Updated `describe` blocks to conditionally run tests based on `process.env.TW_SECRET_KEY` for multiple test files.
- Added tests for `isLazyMintSupported` in `erc1155: lazyMint`.
- Added tests for `isMintAdditionalSupplyToSupported` in `erc1155: mintAdditionalSupplyTo`.
- Added tests for `mintTo` functionality in `erc1155: mintTo`.
- Added tests for `isGetNFTsSupported` in `ERC1155 getNFTs`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants